/* 订单详情页整体样式 */
.order-detail-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: "Microsoft YaHei", sans-serif;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-detail-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.back-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* 订单状态区块 */
.order-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.status-info {
    flex: 1;
}

.status-text {
    font-size: 18px;
    color: #ff6700;
    font-weight: 500;
    margin-bottom: 8px;
}

.status-desc {
    font-size: 14px;
    color: #666;
}

/* 状态操作按钮样式 */
.status-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    margin-right: 5px;
    font-size: 16px;
}

.action-btn.primary {
    background-color: #ff6700;
    color: #fff;
}

.action-btn.primary:hover {
    background-color: #ff8533;
    box-shadow: 0 4px 8px rgba(255, 103, 0, 0.2);
}

.action-btn.secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.action-btn.secondary:hover {
    background-color: #e8e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.warning {
    background-color: #ff9800;
    color: #fff;
}

.action-btn.warning:hover {
    background-color: #ffad33;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

.action-btn.danger {
    background-color: #f44336;
    color: #fff;
}

.action-btn.danger:hover {
    background-color: #f77066;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.2);
}

.action-btn.disabled {
    background-color: #cccccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.action-btn.disabled:hover {
    background-color: #cccccc;
    box-shadow: none;
}

.status-btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: all 0.3s;
}

.primary-btn {
    background-color: #ff6700;
    color: #fff;
}

.primary-btn:hover {
    background-color: #f25807;
}

.secondary-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background-color: #f5f5f5;
}

/* 订单进度条 */
.order-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.progress-item.active .progress-icon,
.progress-item.completed .progress-icon {
    background-color: #ff6700;
    color: #fff;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.progress-item.active .progress-text,
.progress-item.completed .progress-text {
    color: #ff6700;
    font-weight: 500;
}

.progress-time {
    font-size: 12px;
    color: #999;
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: #eee;
    position: relative;
    z-index: 0;
    margin: 0 15px;
}

.progress-line.active {
    background-color: #ff6700;
}

/* 各个区块通用样式 */
.order-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.section-content {
    padding: 20px;
}

/* 收货信息区块 */
.address-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-item {
    display: flex;
    align-items: flex-start;
}

.address-label {
    width: 80px;
    color: #666;
    font-size: 14px;
}

.address-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* 商品信息区块 */
.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.product-table th {
    background-color: #f9f9f9;
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

.product-info-col {
    text-align: left;
    width: 50%;
}

.price-col,
.quantity-col,
.subtotal-col {
    width: 16.66%;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-details {
    flex: 1;
}

.product-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.product-author {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.product-price,
.product-quantity,
.product-subtotal {
    font-size: 14px;
    color: #333;
}

.product-subtotal {
    color: #ff6700;
    font-weight: 500;
}

/* 订单信息区块 */
.order-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.order-info-item {
    display: flex;
    align-items: flex-start;
}

.info-label {
    width: 100px;
    color: #666;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* 订单金额区块 */
.order-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.amount-item {
    display: flex;
    align-items: center;
}

.amount-label {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.amount-value {
    color: #333;
    font-size: 14px;
}

.amount-item.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.amount-item.total .amount-label {
    font-size: 16px;
    font-weight: 500;
}

.amount-item.total .amount-value {
    font-size: 18px;
    color: #ff6700;
    font-weight: bold;
}

/* 物流信息弹窗 */
.logistics-container {
    padding: 20px;
}

.logistics-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.logistics-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.timeline-time {
    width: 120px;
    font-size: 12px;
    color: #999;
    padding-right: 15px;
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding-left: 20px;
    padding-bottom: 15px;
    border-left: 1px solid #eee;
    position: relative;
    font-size: 14px;
    color: #333;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ddd;
}

.timeline-item:first-child .timeline-content::before {
    background-color: #ff6700;
}

.timeline-item:first-child .timeline-content {
    color: #ff6700;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .order-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .progress-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .progress-line {
        width: 2px;
        height: 30px;
        margin: 0 0 0 20px;
    }
    
    .order-info-list {
        grid-template-columns: 1fr;
    }
    
    .product-table th,
    .product-table td {
        padding: 10px;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
}